package com.basin.auth.core.component;

import com.basin.auth.core.repository.AuthAccountRepository;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author: Sam ZHONG | sammy1997@aliyun.com
 * @date: 2025/4/13 19:06
 * @description:
 */
@Component
@RequiredArgsConstructor
@Slf4j
public class AuthServerManager {
    private final AuthAccountRepository repository;

    public List<String> getWhiteUserIds() {
        return List.of("admin", "sammy");
    }

    public List<String> getWhiteIps() {
//        return List.of("127.0.0.1", "localhost");
        return List.of("");
    }

    public List<String> getWhiteUris() {
        return List.of("/basin-auth/sign-in");
    }

    public List<String> getPermsByLoginId(Object loginId) {
        return null;
    }

    public List<String> getRolesByLoginId(Object loginId) {
        return List.of("user", "");
    }
}
